<?php
class hr extends htmlwidget {		
	public function __construct(){
		parent::__construct();
		$this->validAttributes[] = 'size';
		$this->tag = 'hr';
	}
	
	public function __toString(){
		//open tag
		$this->html = "<";
		$this->html .= $this->tag;
		foreach ( $this->attributes as $key => $value){
			if ( ! empty($value) || strlen($value)){
				$this->html .= ' ' . $key . '="' . $value . '"';
			}
		}
		$this->html .= '>';
		return $this->html;
	}
}
?>